Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for protocol v2.0 #354

Merged
merged 4 commits into from
Oct 30, 2024
Merged

Add support for protocol v2.0 #354

merged 4 commits into from
Oct 30, 2024

Conversation

elprans
Copy link
Member

@elprans elprans commented Oct 29, 2024

This is mostly about adding support for the v2.0 type descriptor layout
with some minor cleanups thrown in.

This is mostly about adding support for the v2.0 type descriptor layout
with some minor cleanups thrown in.
Copy link
Contributor

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some potential + optional maintainability and readability notes we may want to address while we're in here.

impl Decode for InputShapeTypeDescriptor {
fn decode(buf: &mut Input) -> Result<Self, DecodeError> {
ensure!(buf.remaining() >= 19, errors::Underflow);
assert!(buf.get_u8() == 8);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above, this would be clearer if it were InputShapeTypeDescriptor::DESCRIPTOR_ID or something similar.

@elprans elprans merged commit aadf0b6 into master Oct 30, 2024
4 checks passed
@elprans elprans deleted the proto-2-0 branch October 30, 2024 22:42
elprans added a commit that referenced this pull request Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants